import Mock from 'mockjs'
import home_api from './mockServeData/home.js'
import echarts_api from './mockServeData/echarts.js'
import task_api from './mockServeData/task.js'

Mock.mock('/getMenu', home_api.getMenuInformation())
Mock.mock('/getCard', home_api.getCardData())
Mock.mock('/getTableData', home_api.getTableData())
Mock.mock('/getZxEchartData', echarts_api.getzxEchartsData())
//请求中带参数 使用正则来解决
Mock.mock(RegExp('/getCompleteTaskTable' + '.*'),'get', task_api.getcompleteTaskData)
Mock.mock(RegExp('/getcompleteTaskStatusData' + '.*'),'get', task_api.getcompleteTaskStatusData)